import React from 'react';
import './App.css';
import { dispatch } from './Store.js'


export default class App extends React.Component {
  
  constructor(props){
    super(props)
    this.state = {
     
    }
   
  }

  componentDidMount() {
    dispatch('')
  }

  handleClick = (args) => {
    return () => {
      dispatch(args)
    }
  }

  render(){
    return (
      <div className="App">
      
          <span id='count'></span>
          <button onClick={this.handleClick({type:'increment'})}>+1</button>
      </div>
    );
  }
}


